package com.pet.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

@Data
@Accessors(chain = true)
@TableName("rights")
public class Rights extends BasePojo{
    @TableId(type = IdType.AUTO)
    private Integer id;//编号
    private String name;//名称
    private Integer parentId;//父级编号
    private String path;//路径
    private Integer level;//分类级别
    @TableField(exist = false)
    private List<Rights> children;//存次级分类对象
}
